<template>
  <div class="scarch">
    <p><slot></slot>：</p>
    <input type="text" placeholder="请输入" v-model="value">
    <el-button type="primary" icon="el-icon-search" @click="search" :value="value">查询</el-button>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        value:''
      }
    },
    methods: {
      search() {
         this.$emit('search',this.value)
      },
    }
  }
</script>

<style>

</style>
